<!DOCTYPE html>
<html>
<#include "../head.html">
    <body class="full">
    <div class="mc">
        <div class="mc-l">
            <!--左侧导航---{-->
            <div id="navPanelContainer">
                <div class="system-logo cd"></div>
                <!--管理员信息---{-->
                <#include "../adminInfo.html">
                    <!--管理员信息---}-->
                    <div class="nav-wrap">
                        <#include "left.html">
                    </div>
            </div>
            <!--左侧导航---}-->
        </div>
        <div class="mc-m">
            <div class="navToggle"></div>
        </div>
        <div class="mc-r">
            <!--顶部导航---{-->
            <#include "../topNav.html">
                <!--顶部导航---}-->

                <!--面包屑导航---{-->
                <#if verifyType??>
                    <#if verifyType="phone">
                        <#assign moduleName="手机认证">
                            <#elseif verifyType="video">
                                <#assign moduleName="视频认证">
                                    <#elseif verifyType="scene">
                                        <#assign moduleName="现场认证">
                                            <#else>
                                                <#assign moduleName="认证管理">
                    </#if>
                </#if>
                <#include "banner.html">
                    <!--面包屑导航---}-->

                    <!--工具栏--{-->
                    <div id="toolbar" class="clearfix">

                        <div class="toolbor-module search">
                            <div class="formTit">用户名：</div>
                            <input type="text" name="username" id="username" value="请输入用户名" class="search-value">
                            <input type="button" value="搜索"  class="input-button" onclick="sousuo();">
                        </div>

                    </div>
                    <!--工具栏--}-->

                    <div id="main" class="clearfix">
                        <table class="data-list">
                            <tr class="header">
                                <td>用户名称</td>
                                <td>真实姓名</td>
                                <td>实名认证</td>
                                <td>邮箱认证</td>
                                <td>手机认证</td>
                                <td>视频认证</td>
                                <td>现场认证</td>
                            </tr>

                            <#if list??>
                                <#list list as obj>
                                    <tr class="s">
                                        <td><a onclick='alertPop("用户详细信息查看","url:get?viewUserInfo.html?userId=${obj.userId!''}",500,230,"true","","true","text");'
                                            href="javascript:void(0)">${obj.username!''}</a></td>
                                        <td>${obj.realname!}</td>

                                        <td>
                                            <#if obj.realStatus??&&obj.realStatus==1> <font color="#009900">审核通过</font>
                                                <#elseif obj.realStatus??&&obj.realStatus==2> <a
                                                        onclick='alertPop("真实姓名审核","url:get?viewAudit.html?userId=${obj.userId?c}&type=realname",500,230,"true","","true","text");'

                                                        href="javascript:void(0)"><font color="#FF0000">等待审核</font></a><#elseif obj.realStatus??&&obj.realStatus==3> <font color="#cccccc">申请失败</font><#else> <font color="#cccccc">没有申请</font></#if>
                                        </td>

                                        <td><#if
                                                obj.emailStatus??&&obj.emailStatus==1> <font color="#009900">审核通过</font>
                                            <#elseif obj.emailStatus??&&obj.emailStatus==2> <a
                                                    onclick='alertPop("邮箱认证审核","url:get?viewAudit.html?userId=${obj.userId?c}&type=email",500,230,"true","","true","text");'
                                                    href="javascript:void(0)"><font color="#FF0000">等待审核</font></a>
                                                <#elseif obj.emailStatus??&&obj.emailStatus==3> <font color="#cccccc">申请失败</font>
                                                    <#else> <font color="#cccccc">没有申请</font></#if>
                                        </td>

                                        <td>
                                            <#if obj.phoneStatus??&&obj.phoneStatus==1> <font color="#999999">[手机：<#if obj.phone??>${obj.phone}</#if>]</font><font
                                                    color="#009900">审核通过</font>
                                                <#elseif obj.phoneStatus??&&obj.phoneStatus==2>
                                                    <font color="#999999">[手机：<#if obj.phone??>${obj.phone}</#if>]</font>
                                                    <a
                                                            onclick='alertPop("手机认证审核","url:get?viewAudit.html?userId=${obj.userId?c}&type=phone",500,230,"true","","true","text");'
                                                            href="javascript:void(0)"><font color="#FF0000">等待审核</font></a>
                                                    <#elseif obj.phoneStatus??&&obj.phoneStatus==3> <font color="#cccccc">申请失败</font>
                                                        <#else>
                                                            <font color="#cccccc">没有申请</font>
                                            </#if>
                                        </td>

                                        <td>
                                            <#if obj.videoStatus??&&obj.videoStatus==1> <font color="#009900">审核通过</font>
                                                <#elseif obj.videoStatus??&&obj.videoStatus==2><a
                                                        onclick='alertPop("视频认证审核","url:get?viewAudit.html?userId=${obj.userId?c}&type=video",500,230,"true","","true","text");'
                                                        href="javascript:void(0)"><font color="#FF0000">等待审核</font></a>
                                                    <#elseif obj.videoStatus??&&obj.videoStatus==3> <font color="#cccccc">申请失败</font>
                                                        <#else> <font color="#cccccc">没有申请</font> </#if>
                                        </td>


                                        <td>
                                            <#if obj.sceneStatus??&&obj.sceneStatus==1> <font color="#009900">审核通过</font>
                                                <#elseif obj.sceneStatus??&&obj.sceneStatus==2><a
                                                        onclick='alertPop("现场审核","url:get?viewAudit.html?userId=${obj.userId?c}&type=scene",500,230,"true","","true","text");'
                                                        href="javascript:void(0)"><font color="#FF0000">等待审核</font></a>
                                                    <#elseif obj.sceneStatus??&&obj.sceneStatus==3> <font color="#cccccc">申请失败</font>
                                                        <#else> <font color="#cccccc">没有申请</font> </#if>
                                        </td>

                                        <!--<td align="center" class="main_td1">-</a></td>-->
                                    </tr>
                                </#list>
                            </#if>

                        </table>

                        <!--底部工具栏--{-->
                        <div id="bottomToolbar" class="clearfix">
                            <div class="other-tool">
                                <dl class="refresh-data">
                                    <dt class="refresh-data-icon"></dt>
                                    <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                                </dl>
                            </div>

                            <!--翻页系统--{-->
                            <div class="container s_formPage">
                                <#if !verifyType??>
                                    <#assign url="/admin/attestation/verifyRealname.html" >
                                        <#elseif verifyType=="phone">
                                            <#assign url="/admin/attestation/verifyPhone.html" >
                                                <#elseif verifyType=="scene">
                                                    <#assign url="/admin/attestation/verifyScene.html" >
                                                        <#elseif verifyType=="video">
                                                            <#assign url="/admin/attestation/verifyVideo.html" >
                                                                <#else>
                                                                    <#assign url="/admin/attestation/verifyRealname.html" >
                                </#if>
                                <#import "../../common/page.html" as pager>
                                    <@pager.pagination page=page url=url map=param style="style1" />
                            </div>
                            <!--翻页系统--}-->
                        </div>
                        <!--底部工具栏--}-->

                    </div>
        </div>
    </div>
    <div class="mc-b">
        <#include "../foot.html">
    </div>
    <#include "../jsPage.html">
    <script>
    var urls = '?search=true';

        function sousuo(){
            var sou = "";
            var username = $("#username").val();
            if (username!=""&&username!="请输入用户名"){
                sou += "&username="+username;
            }
            var realname = $("#realname").val();
            if (realname!=""){
                sou += "&realname="+realname;
            }
            var type = $("#type").val();
            if (type!=""){
                sou += "&type="+type;
            }
            var typeStatus = $("#typeStatus").val();
            if (typeStatus!=""){
                sou += "&typeStatus="+typeStatus;
            }
            location.href=urls+sou;
        }
        
    </script>
    </body>
</html>
